<div class="layui-form-item">
    <div class="layui-input-block">
        {if isset($button)}
        {foreach $button as $value}
        {if $value['type']=='submit'}
        <input type="submit" id="submit" value="立即提交" class="layui-btn">
        {/if}
        {if $value['type']=='back'}
        <input type="button" onclick="back()" value="返回"  class="layui-btn layui-btn-primary"/>
        {/if}
        {/foreach}
        {/if}
    </div>
</div>